package pri.zxx.learndemo.threademo.futureTaskDemo;

import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author Twilight
 * @desc
 * @createTime 2020-05-31-17:22
 */
@Slf4j
public class LockTest {


    @Test
    public void test() {
        ReentrantLock reentrantLock = new ReentrantLock(true);
        reentrantLock.lock();

        reentrantLock.unlock();
    }
}
